// pages/tool/card/make1/setInfo/textview/textview.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        name: "",
        text: ""
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        let eventChannel = this.getOpenerEventChannel();
        if (eventChannel != null && eventChannel.on != null) {
            eventChannel.on('name', (name) => {
                wx.setNavigationBarTitle({
                    title: name
                });
                this.setData({
                    name: name
                })
            });
            eventChannel.on('text', (text) => {
                this.setData({
                    text: text
                })
            });
        }
    },
});